<template>
  <div class="root">
    <template v-if="showStyle">
      <leaseGoods v-for="good in goods" :key="good" :goods="good"></leaseGoods>
    </template>
  </div>
</template>

<script>
import leaseGoods from "@/components/lease/leaseGoods";

export default {
  components: {
    leaseGoods
  },
  data() {
    return {};
  },
  props: {
    showStyle: {
      type: Boolean,
      defalut: true
    },
    goods: {
      type: Array,
      defalut: []
    }
  }
};
</script>
<style scoped lang="less">
.root {
  width: 100%;
}
</style>